package com.qubuyer.business.mine.activity

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.qubuyer.business.mine.fragment.IncomeDetailFragment

/**
 * @author Susong
 * @date 创建时间2019/6/23
 * @description 收支明细activity
 * @version
 */
class IncomeFragment : TabHostFragment() {
    override fun getTitle(): String {
        return "收支明细"
    }

    override val tabs: Array<String>
        get() = arrayOf("全部","收入","提现")

    override fun createFragment(position: Int): Fragment {
        return when (position) {
            0 -> IncomeDetailFragment()
            1 -> IncomeDetailFragment().apply {
                arguments = Bundle().apply { putString("type", "income") }
            }
            else -> IncomeDetailFragment().apply {
                arguments = Bundle().apply { putString("type", "wa") }
            }
        }
    }
}